# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=libjodycode
pkgver=3.1
pkgrel=1
pkgdesc='Shared code used by several utilities written by Jody Bruchon.'
arch=('x86_64' 'aarch64')
url='https://github.com/jbruchon/libjodycode'
license=('MIT')
depends=('glibc')
source=("https://github.com/jbruchon/libjodycode/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('980f1797084594f710cae92b26d10c46a73415d11e89af608c8a87730ea39f497fec0889f9bd88af7c23aa0067dd6642758edc2b2756d9eba6e6a4a50c583751')

build() {
	cd "$pkgname-$pkgver"

	make
}

package() {
	cd "$pkgname-$pkgver"

  make PREFIX="/usr" DESTDIR="$pkgdir" install

  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

